package com.attendance.dao;

import java.util.List;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import com.attendance.entity.Late;
@Repository
public interface LateRepository  extends PagingAndSortingRepository<Late, Long>, JpaSpecificationExecutor<Late>  
{
	@Query(value="from Late a where a.staff.staffName like %?1%")
	public List<Late> findLikeStaffName(String name);
	@Query(value="from Late a where a.staff.staffNum like %?1%")
	public List<Late> findLikeStaffNum(String num);
}
